package com.eclipse.e0112_java基础.多态;

public class School {
	void goSchool() {
		System.out.println("去学校");
	}
}

class Student extends School{
	void goSchool() {
		System.out.println("学生去学校");
	}
}

class Teacher extends School{
	void goSchool() {
		System.out.println("教师去学校");
	}
}